$(function(){
//	var va=$("#msg").val();
	$('#msg').show(1010);
});


function login1(){
	$.ajax({
		url:'User_login',
		cache: true,
		async: false,
		type:'post',
		error : function(request) {alert("发送请求失败！" + request.responseText);},
		data:$("#login").serialize(),
		success:function(mesg){
			var va=$.trim(mesg);
			if(va=="success"){
				alert("登陆成功！");
				window.location.href='/index.jsp';
			}else{
				alert("帐号或密码错误！");
			}
	 }
	});
}